package com.ajk.server.config;

import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.context.annotation.*;

@Configuration
@ComponentScan("com.ajk.server.config")
public class AResourceConfig {
	@Configuration
	@Profile(UserProfile.INTG)
	@PropertySource(value = {
							"classpath:/intg/rpc.properties",
							"classpath:/intg/jdbc.properties",
							"classpath:/intg/config.properties",
							"classpath:/intg/cache.properties",
							"classpath:/intg/cheat_sheet.properties",
							"classpath:/intg/env.properties"
							})
	static class IntgConfiguration {

	}
	
	@Configuration
	@Profile(UserProfile.PROD)
	@PropertySource(value = {
							"classpath:/prod/rpc.properties",
							"classpath:/prod/jdbc.properties",
							"classpath:/prod/config.properties",
							"classpath:/prod/cache.properties",
							"classpath:/prod/cheat_sheet.properties",
							"classpath:/prod/env.properties"
							})
	static class ProdConfiguration {}
}
